<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-17 20:55:43
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-17 21:00:09
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 必须要有盒子，并且必须设置宽高 -->
    <div style="width: 500px;height:500px"></div>
    <!-- 引入插件文件 -->
    <script src="./项目模板/lib/echarts.min.js"></script>
    <script>
        const mychart = echarts.init(document.querySelector('div'))
        const option = {
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    data: [820, 932, 901, 934, 1290, 1330, 1320],
                    type: 'line',
                    smooth: true
                }
            ]
        }
        mychart.setOption(option)
    </script>

</body>

</html>